package cn.tedu.spring.life;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestOrder {
    public static void main(String[] args) {
        //使用实现类: AnnotationConfigApplicationContext
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.life");
        Order order = context.getBean(Order.class);
        //开发者使用阶段
        System.out.println("4.开发者使用阶段[getBean()方法]");
        context.close();
    }
}
